﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace TronLeapRacing
{
    class GameInfo
    {
        private String name;
        private Vector2 pos;
        public SpriteFont Font { get; set; }
        public float Value { get; set; }

        public GameInfo(Vector2 pos, String name) {
            this.pos = pos;
            this.name = name;
            Value = 0;
        }

        public void Draw(SpriteBatch spriteBatch, bool time) {
            if (time)
                spriteBatch.DrawString(Font, name+": " + Value.ToString("N2"), pos, Color.White);
            else
                spriteBatch.DrawString(Font, name + ": " + Value.ToString("N0"), pos, Color.White);
        }
    }
}
